package org.dromara.common.wukong.service;

import com.alibaba.fastjson2.JSONArray;

import java.io.IOException;

/**
 * 会话列表
 * @Author: Stars
 * @Date: 2025/5/18 20:46
 */
public interface WuKongConversationService {

    /**
     * 同步最近会话
     * @param userId
     * @return
     */
    JSONArray syncConversation(Long userId) throws IOException;

    /**
     * 设置最近会话未读数量
     * @param userId uid
     * @param channelId 频道ID
     * @param channelType 频道类型
     */
    void setConversationUnreadCount(Long userId, String channelId, Integer channelType) throws IOException;

    /**
     * 删除会话列表
     * @param userId uid
     * @param channelId 频道ID
     * @param channelType 频道类型
     * @throws IOException
     */
    void deleteConversation(Long userId, String channelId, Integer channelType) throws IOException;
}
